#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2019-02-10 21:29:29
# @Author  : Your Name (you@example.org)
# @Link    : link
# @Version : 1.0.0

from django.db import models


class User(models.Model):
    user_name = models.CharField(max_length=30)
    password = models.CharField(max_length=30)

    def __unicode__(self):
        return self.user_name


class BaseData(models.Model):
    uid = models.CharField(max_length=20, blank=True, null=True)
    name = models.CharField(max_length=50, blank=True, null=True)
    type = models.CharField(max_length=50, blank=True, null=True)
    cdate = models.CharField(max_length=50, blank=True, null=True)
    cen_lon = models.CharField(max_length=50, blank=True, null=True)
    cen_lat = models.CharField(max_length=50, blank=True, null=True)
    l_on_lon = models.CharField(max_length=50, blank=True, null=True)
    l_on_lat = models.CharField(max_length=50, blank=True, null=True)
    r_d_lon = models.CharField(max_length=50, blank=True, null=True)
    r_d_lat = models.CharField(max_length=50, blank=True, null=True)
    author = models.CharField(max_length=50, blank=True, null=True)
    cpath = models.CharField(max_length=50, blank=True, null=True)
    recordp = models.CharField(max_length=50, blank=True, null=True)
    rtime = models.CharField(max_length=50, blank=True, null=True)
    format = models.CharField(max_length=50, blank=True, null=True)
    details = models.CharField(max_length=1000, blank=True, null=True)
    sname = models.CharField(max_length=50, blank=True, null=True)

    def __unicode__(self):
        return self.name


if __name__ == '__main__':
    pass
